package org.example.thread.thread01;

/**
 * @Auther:Liu
 * @Testname:Demo02
 * @Date:2025/8/14 10:42
 */
public class Demo02 implements Runnable {
    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        for (int i = 0; i < 10; i++) {
            System.out.println("当前线程的名字是:"+name+"，执行了第"+i+"次");

        }
    }
}
